home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 46 / CDPowerplay46Disc2.iso / utils / xqxset55 / _SETUP.2 / Group3 / XQ WinNT CrashControl.xpl < prev    next >
Encoding:
XSetup plugin  |  1999-09-08  |  1.4 KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="System\Misc"
  5. "NAME"="Crash Control #1"
  6. "VERSION"="1.01"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Write Dump to MEMORY.LOG"
  9. "TEXT 2"="Automatically restart Explorer after crash"
  10. "DESCRIPTION 1"="Several options what Windows NT should do if it crashes (STOP Error)."
  11. "DESCRIPTION 2"="More options can be configured using "Control Panel" -> "System" -> "Startup/Shutdown"."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16.  
  17. sPath="HKLM\System\CurrentControlSet\Control\CrashControl\"
  18. sDump="CrashDumpEnabled"
  19.  
  20. sRest="HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoRestartShell" 'REG_DWORD
  21.  
  22. Sub Plugin_Initialize 
  23.  if RegPathExists(sPath)=false then
  24.     Disable
  25.  else
  26.     i=RegReadValue(sPath & sDump)
  27.     if i=1 then Call SetUIElement(1,True)
  28.  
  29.     i=RegReadValue(sRest)
  30.     if i=1 then Call SetUIElement(2,True)
  31.  end if
  32. End Sub
  33.  
  34. Sub Plugin_CheckData(ElementIndex)
  35. End Sub
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  b=GetUIElement(1)
  39.  if b=true then
  40.   Call RegWriteValue(sPath & sDump,1,2)
  41.  else
  42.   Call RegWriteValue(sPath & sDump,0,2)
  43.  end if
  44.  
  45.  b=GetUIElement(2)
  46.  if b=true then
  47.   Call RegWriteValue(sRest,1,2)
  48.  else
  49.   Call RegWriteValue(sRest,0,2)
  50.  end if
  51.  
  52.  Call Restart
  53. End Sub
  54.  
  55. Sub Plugin_Terminate 
  56. End Sub
  57.